using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class BaseView : MonoBehaviour
{
    private Canvas mainCanvas;
    public WindowLayer WindowLayer;

    public void Close()
    {
        UIManager.Instance.CloseWindow(this.gameObject.name);
    }
    

    private object[] Params;
    public object[] GetParams()
    {
        return Params;
    }

    public object GetParams(int index)
    {
        if(Params.Length > index)return Params[index];
        return null;
    }
    public void SetParams(params object[] args)
    {
        Params = args;
    }

    public virtual void Refresh()
    {}

}